package com.ruoyi.travel.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

public class TravelOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键,订单id */
    private Long orderId;

    /** 订单号随机生成 dd+时间戳毫秒+四位随机数 */
    @Excel(name = "订单号随机生成 dd+时间戳毫秒+四位随机数")
    private String orderNumber;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 行程id */
    @Excel(name = "行程id")
    private Long scheduleId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal moneyTotal;
    private Long clientId;
    private TravelSchedule travelSchedule;
    private TravelConsult travelConsult;
    private TravelClient travelClient;

    private Long userId;//当前登录的用户id，数据库表里面没有，但是写在对象里面为了写方法方便。
    private String userRoleName;//当前登录用户的角色是定制师还是什么，数据库表里面没有，但是写在对象里面为了写方法方便。

    private String designerName;

    private String guideName;

    public String getDesignerName() {
        return designerName;
    }

    public void setDesignerName(String designerName) {
        this.designerName = designerName;
    }

    public String getGuideName() {
        return guideName;
    }

    public void setGuideName(String guideName) {
        this.guideName = guideName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserRoleName() {
        return userRoleName;
    }

    public void setUserRoleName(String userRoleName) {
        this.userRoleName = userRoleName;
    }

    public TravelConsult getTravelConsult() {
        return travelConsult;
    }

    public void setTravelConsult(TravelConsult travelConsult) {
        this.travelConsult = travelConsult;
    }

    public TravelClient getTravelClient() {
        return travelClient;
    }

    public void setTravelClient(TravelClient travelClient) {
        this.travelClient = travelClient;
    }

    public TravelSchedule getTravelSchedule() {
        return travelSchedule;
    }
    public void setTravelSchedule(TravelSchedule travelSchedule) {
        this.travelSchedule = travelSchedule;
    }
    public Long getClientId() {
        return clientId;
    }

    public void setClientId(Long clientId) {
        this.clientId = clientId;
    }

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setScheduleId(Long scheduleId)
    {
        this.scheduleId = scheduleId;
    }

    public Long getScheduleId()
    {
        return scheduleId;
    }
    public void setMoneyTotal(BigDecimal moneyTotal)
    {
        this.moneyTotal = moneyTotal;
    }

    public BigDecimal getMoneyTotal()
    {
        return moneyTotal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNumber", getOrderNumber())
            .append("status", getStatus())
            .append("scheduleId", getScheduleId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("moneyTotal", getMoneyTotal())
            .append("clientId", getClientId())
            .append("travelSchedule", getTravelSchedule())
                .append("travelConsult",getTravelConsult())
                .append("travelClient", getTravelClient())
                .append("userId",getUserId())
                .append("userRoleName",getUserRoleName())
                .append("designName",getDesignerName())
                .append("guiderName",getGuideName())
            .toString();
    }
}
